﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Http;
using System.Web.Mvc;
using Angular4DotNet.Models.Countries;

namespace Angular4DotNet.Controllers
{
    public class CountryController : ApiController
    {
        private  ICountryRepository repository= new CountryRepository();

        public L_Country[] Get()
        {
            return repository.GetCountries().ToArray();
        }

    }
}
